package main

import (
	"fmt"
	"reflect"
)

type Student struct {
	Name string
	Age  int
}

func main() {
	testKind(100)
}

func testKind(n interface{}) {
	//1. 先获取到 reflect.Type
	vType := reflect.TypeOf(n)
	fmt.Println(vType)

	//2、获取：reflect.Value
	nValue := reflect.ValueOf(n)

	kind := nValue.Kind()
	fmt.Println(kind)
}
